#include <iostream>
#include <string>
#include <iomanip>
#include <cmath>
#include <vector>
using namespace std;
int main() {
	vector <int> a;
	vector <int> b;
	vector <int> c;
	int n, x = 0, y = 0, z = 0, w;
	cin >> n;
	a.push_back(2);
	b.push_back(3);
	c.push_back(5);
	for (int i = 0; i < n; i++) {
		w = min(a[x], min(b[y], c[z]));
		if (a[x] == w) {
			x++;
		}
		if (b[y] == w) {
			y++;
		}
		if (c[z] == w) {
			z++;
		}
		cout << w << " ";
		a.push_back(2 * w);
		b.push_back(3 * w);
		c.push_back(5 * w);
	}
}